﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataAccessLayer.Adapter;
using DataAccessLayer.Entity;
namespace BussinessLayer
{
    public class QuanHuyenBussiness
    {
        QuanHuyenAdapter quanHuyenAdapter = new QuanHuyenAdapter();
        DataTable dt;

        public DataTable LoadQuanHuyen()
        {
            return dt = quanHuyenAdapter.LoadQuanHuyen();
        }
        public DataTable LoaTenQuanHuyen(clsQuan_Huyen clsQuanHuyen)
        {

            return dt = quanHuyenAdapter.LoadTenQuanHuyen(clsQuanHuyen);
        }
        public void ThemQuanHuyen(clsQuan_Huyen clsQuan)
        {
            quanHuyenAdapter.ThemQuanHuyen(clsQuan);
        }
        public void SuaQuanHuyen(clsQuan_Huyen clsQuan)
        {
            quanHuyenAdapter.SuaQuanHuyen(clsQuan);
        }
        public void XoaQuanHuyen(clsQuan_Huyen clsQuan)
        {
            quanHuyenAdapter.XoaQuanHuyen(clsQuan);
        }
        public DataTable LoadTenQuan(clsQuan_Huyen clsQuanHuyen)
        {
            return quanHuyenAdapter.LoadTenQuan(clsQuanHuyen);
        }
        public object KiemTraMaHuyen(clsQuan_Huyen clsQuanHuyen)
        {
            return quanHuyenAdapter.KiemTraMa(clsQuanHuyen);
        }
    }
}
